﻿<%@ Page Title="学生信息" Language="C#" AutoEventWireup="true" MasterPageFile="~/Master.master"
    CodeFile="EnterprisesInfo.aspx.cs" Inherits="EnterprisesInfo" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="head">
</asp:Content>
<asp:Content ID="MainContent" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
<script type="text/javascript">
    function con(obj) {
        if (confirm("确定要进行此操作么？")) {
            return true;
        }
        else {
            return false;
        }
    }
</script>
    <div style="text-align:left;width:100%">
        <table>
            <tr>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:LinkButton ID="LinkButton1" runat="server" OnClick="lbtn1_Click" CssClass="btn btn-success">搜索</asp:LinkButton>
                </td>
            </tr>
        </table>
    </div>
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" AllowPaging="true"
            CssClass="table-hover table-bordered" 
            OnPageIndexChanging="GridView1_PageIndexChanging" Width="695px">
            <EmptyDataTemplate>
                无学生信息</EmptyDataTemplate>
            <Columns>
                <asp:TemplateField HeaderText="单位号码">
                    <ItemTemplate>
                    <%#Eval("eno") %>
                    </ItemTemplate>
                </asp:TemplateField >
                <asp:TemplateField HeaderText="单位名称">
                    <ItemTemplate>
                    <%#Eval("ename") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton2" CommandArgument='<%#Eval("eno") %>' OnClientClick="return con();" OnClick="lbtn2_Click" runat="server"><%#getname(Eval("eno").ToString()) %></asp:LinkButton>
                        <asp:LinkButton ID="LinkButton3" runat="server" CommandArgument='<%#Eval("eno") %>' OnClick="lbtn3_Click">修改密码</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <div id="dialog" runat="server" visible="false">
        <div>
            <table>
                <tr>
                    <td>
                        企业号：
                    </td>
                    <td>
                        <asp:Label ID="Label1" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        名称：
                    </td>
                    <td>
                        <asp:Label ID="Label2" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        密码：
                    </td>
                    <td>
                        <asp:TextBox ID="TextBox2" runat="server" MaxLength="20"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <asp:LinkButton ID="lbtnPwd" runat="server" CssClass="btn btn-info" OnClick="lbtnPwd_Click">保存</asp:LinkButton>
            <asp:LinkButton ID="lbtnCancle" runat="server" CssClass="btn btn-info" OnClick="lbtnCancle_Click">取消</asp:LinkButton>
        </div>
    </div>
</asp:Content>